package com.dofast.bt.mvp.presenter.main;


import com.dofast.bt.base.BaseMvpPresenter;
import com.dofast.bt.mvp.view.activity.main.MainView;

/**
 * username:Created by hsj on 2016/10/17 0017.
 * class：
 * 类描述：主页面逻辑处理
 */

public class MainPresenter extends BaseMvpPresenter<MainView> implements IMainPresenter {


    @Override
    public void init() {
        checkViewAttach();
        mvpView.selectShop();
        mvpView.showShopFragment();
    }

    @Override
    public void showShopFragment() {
        mvpView.selectShop();
        mvpView.showShopFragment();
    }

    @Override
    public void showMessageFragment() {
        mvpView.selectMessage();
        mvpView.showMessageFragment();
    }

    @Override
    public void showBasketragment() {
        mvpView.selectBasket();
        mvpView.showBasketragment();
    }


    @Override
    public void showMyFragment() {
        mvpView.selectMy();
        mvpView.showMyFragment();
    }
}
